package com.smartdot.bluetoothidcarddemo.http;

import com.smartdot.bluetoothidcarddemo.bean.MiJieMessageBean;

import io.reactivex.Observable;
import retrofit2.http.Field;
import retrofit2.http.FormUrlEncoded;
import retrofit2.http.Header;
import retrofit2.http.POST;
import retrofit2.http.Url;

/**
 * API
 * Created by LUOLI on 2017/6/19.
 */
public interface APIService {

    /**
     * 刷新token
     */
//    @POST
//    Call<TokenModel> refreshToken(
//            @Url String url,
//            @Header("refreshToken") String refreshToken);

    /**
     * 用户登录的接口
     */
    @FormUrlEncoded
    @POST
    Observable<MiJieMessageBean> getMessage(
            @Url String s,
            @Header("serviceID") String serviceID,
            @Header("secretKey") String secretKey,
            @Field("phone") String username,
            @Field("password") String password,
            @Field("no") String no,
            @Field("name") String name
    );
    /**
     * 用户登录的接口
     */
    @FormUrlEncoded
    @POST
    Observable<MiJieMessageBean> getFaceMessage(
            @Url String s,
            @Header("serviceID") String serviceID,
            @Header("secretKey") String secretKey,
            @Field("phone") String username,
            @Field("password") String password,
            @Field("no") String no,
            @Field("name") String name
    );

}
